package com.dc.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 设备模块服务调用
 *
 * @author zhang
 * url 本地调试使用  url = "http://192.168.0.69:20006"
 */
@FeignClient(value = "dc-fire-device",url = "http://192.168.0.69:20006")
public interface DeviceApiServiceFeign {

    /**
     * 获取摄像头设备信息
     *
     * @param page 页码
     * @return
     */
    @RequestMapping(value = "/splDevice/getDeviceInfo", method = RequestMethod.GET)
    String getDeviceInfo(@RequestParam(name = "page") int page);

    /**
     * 获取摄像头实时视频地址
     *
     * @param deviceCode 摄像机编码
     * @return
     */
    @RequestMapping(value = "/splDevice/getGetVideoRealtime", method = RequestMethod.GET)
    String getGetVideoRealtime(@RequestParam(name = "deviceCode") String deviceCode);

    /**
     * 获取摄像头某时间段历史视频地址
     *
     * @param deviceCode 摄像机编码
     * @param startTime  开始时间
     * @param endTime    结束时间
     * @return
     */
    @RequestMapping(value = "/splDevice/getDeviceHistory", method = RequestMethod.GET)
    String getDeviceHistory(@RequestParam(name = "deviceCode") String deviceCode,
                            @RequestParam(name = "startTime") String startTime,
                            @RequestParam(name = "endTime") String endTime);

    /**
     * 海湾设备信息
     *
     * @return
     */
    @RequestMapping(value = "/haiWanDevice/getHWDeviceInfo", method = RequestMethod.GET)
    String getHWDeviceInfo();

}
